<%@page import="tk.zater.CS.EsetVersionConfigeration"%>
<%@page import="tk.zater.CS.UserAccountManagermant"%>
<%@page import="tk.zater.CS.ESETVersionList"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>后台管理</title>
    
	

  </head>
  
  <body>
      <%@include file="UserAuth.jsp" %>
可使用帐号：<%=UserAccountManagermant.userAccount.size()%> 
<a href="addaccount.zater">添加帐号</a><br/>

<table>
<tr>
<td>版本信息</td><td>上次更新时间</td><td>更新状态</td><td>更新</td>
</tr>
<%
for(int i=0;i<ESETVersionList.getMonitorList().size();i++){
EsetVersionConfigeration target=ESETVersionList.getMonitorList().get(i);
String name=ESETVersionList.getMonitorList().get(i).getVersionName();
Date time=ESETVersionList.getMonitorList().get(i).lastUpdate;
String lastUpdatetime=time==null?"无资料":time.toGMTString();
String updatestatus="未启动";
switch(target.status){
case(-1):
break;
case(0):
updatestatus="更新中";break;
case(1):
updatestatus="休息中";break;
}
%>
<tr><td><%=name%></td><td><%=lastUpdatetime%></td><td><%=updatestatus%></td><td><a href="forceUpdate.zater?name=<%=name%>">更新</a></td>
</tr>
<% 
}
%>
</table>

  </body>
</html>
